Zero Trust API
Use this API to assign dedicated nodes to specific clients and client groups
Never send the server-to-server API key from the client-side
List available nodes
List all available nodes for your project
https://{vpn-brand}.vpngn.com/api/zt/servers/list
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
Assign a client to a node
Allow a specific client to use the specified node
https://{vpn-brand}.vpngn.com/api/zt/clients/assignserver
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- email - (AMAPI client)
- zt_server_id - The server ID (from the /zt/servers endpoint) to assign to the client
Unassign a client from a node
Disallow a specific client from using a specified node
https://{vpn-brand}.vpngn.com/api/zt/clients/unassignserver
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- email - (AMAPI client)
- zt_server_id - The server ID (from the /zt/servers endpoint) to unassign from the client
List clients
List all clients with current Zero Trust Access
https://{vpn-brand}.vpngn.com/api/zt/clients/list
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- page - (default is 1)
- limit - (default is 10)
Optional Parameters:
- email - (optional - AMAPI client)
List all nodes available to the client
Use this endpoint to fetch the node list available for the logged-in end-user
Since API key is not required, this endpoint is safe to use from the client-side.
https://{vpn-brand}.vpngn.com/api/serverlist/zt
- Auth - Pass an Authorization header carrying the Bearer <Short-Token-Here> with the end-user's current short-token value
Client groups
Assign clients to a client group in order to assign / unassign multiple clients at the same time
List client groups
List all the client groups
https://{vpn-brand}.vpngn.com/api/zt/groups/list
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
Add a new client group
Add a client group to your account
https://{vpn-brand}.vpngn.com/api/zt/groups/add
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- name - The name of the group to add
Assign a client to a client group
Add a specific client to a specified client group
https://{vpn-brand}.vpngn.com/api/zt/clients/assigngroup
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- email - (AMAPI client)
- zt_group_id - The group ID to assign the client to
Unassign a client from a client group
Remove a specific client to a specified client group
https://{vpn-brand}.vpngn.com/api/zt/clients/unassigngroup
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- email - (AMAPI client)
- zt_group_id - The group ID to unassign the client from
Assign an entire client group to a node
Allow a specific client to use a specified node
https://{vpn-brand}.vpngn.com/api/zt/groups/assignserver
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- zt_group_id - The ID of the relevant group (from the /zt/groups endpoint)
- zt_server_id - The server ID (from the /zt/servers endpoint) to assign to the group
Unassign an entire client group from a node
Disallow a specific client from using a specified node
https://{vpn-brand}.vpngn.com/api/zt/groups/unassignserver
Request Parameters:
- apikey - Your designated server-to-server API key (https://app.vpnwholesaler.com/credentials)
- zt_group_id - The ID of the relevant group (from the /zt/groups endpoint)
- zt_server_id - The server ID (from the /zt/servers endpoint) to unassign from the group